import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './ruter' //引入路由
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import '@/assets/iconfont/iconfont.css' /* 引入阿里巴巴图标 */
import * as Icons from '@element-plus/icons-vue'

const app = createApp(App)
// 注册所有图标
Object.keys(Icons).forEach((key) => {
    app.component(key, Icons[key])
})
app.use(router)
app.use(ElementPlus, {
    locale: zhCn
}).mount('#app')
